//
//  CustomNavController.m
//  Inforcollection
//
//  Created by macbook on 15/12/1.
//  Copyright © 2015年 oceansoft.liw. All rights reserved.
//

#import "CustomNavController.h"

@interface CustomNavController ()
{
    UIBarButtonItem *backBarItem;
}

@end

@implementation CustomNavController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self navigationCanDragBack:YES];

}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}
-(void)back:(UIButton *)sender
{
    [self popViewControllerAnimated:YES];
}
-(BOOL)shouldAutorotate
{
    return self.topViewController.shouldAutorotate;
}
- (NSUInteger)supportedInterfaceOrientations
{
    return self.topViewController.supportedInterfaceOrientations;
}


@end
